broken.
* Support --json and --json-error-messages in more commands
(addunused, dead, describe, dropunused, expire, fix, init, log, migrate,
- reinit, reinject, rekey, rmurl, semitrust, setpresentkey, trust, unannex,
- undo, untrust, unused)
+ reinit, reinject, rekey, renameremote, rmurl, semitrust, setpresentkey,
+ trust, unannex, undo, untrust, unused)
* log: When --raw-date is used, display only seconds from the epoch, as
documented, omitting a trailing "s" that was included in the output
before.
import qualified Data.Map as M
cmd :: Command
-cmd = command "renameremote" SectionSetup
- "changes name of special remote"
- (paramPair paramName paramName)
- (withParams seek)
+cmd = withAnnexOptions [jsonOptions] $
+ command "renameremote" SectionSetup
+ "changes name of special remote"
+ (paramPair paramName paramName)
+ (withParams seek)
seek :: CmdParams -> CommandSeek
seek = withWords (commandAction . start)
* git-annex-init
* git-annex-reinit
* git-annex-reinject
+* git-annex-renameremote
Provisional list of commands that don't support --json and maybe should:
* git-annex-enableremote
* git-annex-initremote
* git-annex-merge
-* git-annex-renameremote
* git-annex-upgrade
These commands could support json, but I punted: